<template>
  <div>
    <!-- 个人详情页 -->
    <div class="headerbox">
      <div class="header">
        <p><van-icon name="arrow-left" @click="tui()"/></p>
        <p class="iconfont icon-gengduo"></p>
      </div>
    </div>
    <!-- header个人头像头部 -->
    <div class="personlistbox">
      <div class="personlist">
        <div class="up">
          <div class="left">
            <img src="zhangyifan/imgs/1.jpg" alt="" />
          </div>
          <div class="right">
            <h5>强力枇杷露</h5>
            <p>ip属地：陕西省 <span class="iconfont icon-wenhao"></span></p>
          </div>
        </div>
        <div class="mid">好好生活，认真干饭</div>
        <div class="down">
          <div class="left">
            <div class="le">
              <h4>13</h4>
              <p>粉丝</p>
            </div>
            <div class="le">
              <h4>52</h4>
              <p>关注</p>
            </div>
            <div class="le">
              <h4>999</h4>
              <p>获赞</p>
            </div>
          </div>
          <div class="right">关注</div>
        </div>
      </div>
    </div>
    <!-- <footer>底部开始</footer> -->
    <div class="footerbox">
      <div class="footer">
        <div class="up">
          <p>动态</p>
          <p>笔记</p>
          <p>评价</p>
          <p>更多</p>
        </div>
        <div class="mid">
          <div class="all">
            <p class="downo">全部.212</p>
            <p class="mid">快食主义</p>
            <p class="upo">武汉</p>
            <p class="upp">美食</p>
            <p class="upp">西餐</p>
          </div>
        </div>
        <!-- 图片mock -->
        <!-- <div class="down"> -->
          
          <!-- <div class="playpic" v-for="(v, i) in arr" :key="i + 1">
            <div>
              <img :src="v.imgsrc2" alt />
              <p class="ditu">
                <span class="iconfont icon-ditu"></span>
                {{ v.h5 }}
                <span class="iconfont icon-dianzan">0</span>
              </p>
              <p class="txt">{{ v.p }}</p>
            </div>
          </div> -->

        <!-- </div> -->
      </div>
    </div>
    <router-link to="/xiyugeren"><PinglunList/></router-link>
  </div>
</template>
<script>
import axios from "axios";
import PinglunList from "../../components/cheyi/home/PinglunList.vue"
export default {
  components:{
    PinglunList
  },
  data() {
    return {
      arr: [],
    };
  },
  mounted() {
    axios.request("http://localhost:8889/Sperson").then((ok) => {
      console.log(ok);
      this.arr = ok.data;
    });
  },
  methods:{
    tui(){
      this.$router.go(-1)
    }
  }
};
</script>

<style lang="scss" scoped>
* {
  margin: 0;
  padding: 0;
}
.headerbox {
  width: 100%;
  .header {
    width: 91.733vw;
    margin: auto;
    display: flex;
    justify-content: space-between;
    font-size: 8vw;
    .iconfont {
      font-size: 5.067vw;
      line-height: 10.667vw;
    }
  }
}
.personlistbox {
  width: 100%;
  .personlist {
    width: 91.733vw;
    height: 50.667vw;
    margin: auto;
    border-bottom: 0.08vw solid #f5f5f5;
    .up {
      width: 80vw;
      height: 22.133vw;
      display: flex;
      img {
        width: 22.667vw;
        height: 22.133vw;
        border-radius: 12.267vw;
      }
      .right {
        margin: 6.133vw 20.8vw 0 1.6vw;
        p {
          font-size: 2.667vw;
        }
        span {
          font-size: 2.667vw;
        }
      }
    }
    .mid {
      font-size: 2.667vw;
      margin-top: 6.4vw;
    }
    .down {
      display: flex;
      justify-content: space-between;
      .left {
        display: flex;
        justify-content: space-around;
        width: 26.667vw;
        height: 8.533vw;
        margin-top: 5.067vw;
        .le {
          text-align: center;
          p {
            font-size: 2.667vw;
            color: #e5e5e5;
          }
        }
      }
      .right {
        width: 54.133vw;
        height: 8vw;
        text-align: center;
        line-height: 8vw;
        background-color: #fa804f;
        margin-top: 5.6vw;
        color: white;
        border-radius: 4.8vw;
      }
    }
  }
}
.footerbox {
  width: 100%;
  margin-top: 4.267vw;
  .footer {
    width: 91.733vw;
    margin: auto;
    .up {
      width: 50.933vw;
      display: flex;
      justify-content: space-around;
      font-size: 3.733vw;
      font-weight: bold;
    }
  }
}
.mid {
  width: 100%;
  .all {
    margin: auto;
    width: 91.733vw;
    display: flex;
    text-align: center;
    line-height: 7.2vw;
    margin-top: 2.4vw;
    font-size: 2.4vw;
    .upo {
      width: 13.333vw;
      height: 7.2vw;
      border-radius: 2.667vw;
      margin-right: 1.333vw;
      background-color: #f6f6f6;
    }
    .upp {
      width: 13.333vw;
      height: 7.2vw;
      border-radius: 2.667vw;
      background-color: #f6f6f6;
      // color: #f68f7e;
      margin-right: 1.333vw;
    }
    .mid {
      width: 25.6vw;
      height: 7.2vw;
      border-radius: 2.667vw;
      background-color: #f6f6f6;
      margin-right: 1.333vw;
    }
    .downo {
      width: 20.267vw;
      height: 7.2vw;
      border-radius: 2.667vw;
      background-color: #ffeee7;
      color: #f68f7e;
    }
  }
}
.down {
  width: 100%;
  margin-top: 5.6vw;
  flex-wrap: wrap;
  display: flex;
  .playpic {
    margin: auto;
    div {
      width: 42.467vw;
      height: 64.8vw;
      position: relative;
      .ditu {
        position: absolute;
        top: 40.533vw;
        left: 1.867vw;
        color: #f6f6f6;
        font-size: 2.667vw;
      }
      img {
        width: 41.467vw;
        height: 47.2vw;
      }
      .txt {
        width: 46.667vw;
        margin-bottom: 0.8vw;
        text-align: left;
        // overflow-wrap:warp;
      }
    }
  }
}
</style>